import request from '@/utils/request'

// 查询会员与活动中间列表
export function listMemact (query) {
  return request({
    url: '/angel/memact/list',
    method: 'get',
    params: query
  })
}

// 查询会员与活动中间详细
export function getMemact (id) {
  return request({
    url: '/angel/memact/' + id,
    method: 'get'
  })
}

// 新增会员与活动中间
export function addMemact (data) {
  return request({
    url: '/angel/memact',
    method: 'post',
    data: data
  })
}

// 修改会员与活动中间
export function updateMemact (data) {
  return request({
    url: '/angel/memact',
    method: 'put',
    data: data
  })
}

// 删除会员与活动中间
export function delMemact (id) {
  return request({
    url: '/angel/memact/' + id,
    method: 'delete'
  })
}

// 导出会员与活动中间
export function exportMemact (query) {
  return request({
    url: '/angel/memact/export',
    method: 'get',
    params: query
  })
}
